﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChongJu.EventManager.Rating
{
    /// <summary>
    /// 连接状态改变事件
    /// </summary>
    public class ConnectStatusEvent
    {
        public static event Action<ConnectType, bool> ConnectEventReport;
        public static void OnConnect(ConnectType config, bool status)
        {
            ConnectEventReport?.Invoke(config, status);
        }
    }

    public enum ConnectType
    {
        /// <summary>
        /// 相机
        /// </summary>
        Camera = 1,

        /// <summary>
        /// PLC
        /// </summary>
        Plc = 2,

        /// <summary>
        /// 模型加载
        /// </summary>
        ModelDll = 3,

        /// <summary>
        /// 网络状态（本地服务）
        /// </summary>
        Net = 4,

        /// <summary>
        /// MQTT
        /// </summary>
        MQTT = 5,
    }
}
